package com.example.submit;

import com.example.submit.config.aop.Submit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 09948
 */
@RestController
@RequestMapping("api")
public class Api {

    @GetMapping
    @Submit
    public String test() throws Exception {
        Thread.sleep(2000L);
        return "OK";
    }

}
